-- GENERATED SPELL FOR [Priest of Sseratus] --


function spell0_28035(pUnit, Event) --@Blood of Sseratus,Self--
pUnit:FullCastSpellOnTarget(54482,pUnit)
pUnit:RegisterEvent('Sorts_28035', 635, 1)
end

function spell1_28035(pUnit, Event) --@Mind Blast,n/a--
pUnit:FullCastSpellOnTarget(13860,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28035', 1500, 1)
end

function spell2_28035(pUnit, Event) --@Mind Flay,n/a--
pUnit:FullCastSpellOnTarget(16568,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28035', 3000, 1)
end

function Sorts_28035(pUnit, Event)
local choix_sorts_28035 = math.random(0, 2)
if choix_sorts_28035 == 0 then
pUnit:RegisterEvent('spell0_28035', 1, 1)
end
if choix_sorts_28035 == 1 then
pUnit:RegisterEvent('spell1_28035', 1, 1)
end
if choix_sorts_28035 == 2 then
pUnit:RegisterEvent('spell2_28035', 1, 1)
end
end

function mob28035_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28035', math.random(1500, 3000), 1)
end

function mob28035_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28035_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28035_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28035, 1, 'mob28035_Action')
RegisterUnitEvent(28035, 2, 'mob28035_Leave')
RegisterUnitEvent(28035, 3, 'mob28035_Kill')
RegisterUnitEvent(28035, 4, 'mob28035_Die')
